# -*- coding:utf-8 -*-

from django.urls import path, re_path
from rest_framework.routers import SimpleRouter

from Apps.UiTest.views.uiTestCaseLogView import UiTestCaseLogView
from Apps.UiTest.views.uiTestCaseView import UiTestCaseView, UiCaseFile, RunUiTestCaseView
from Apps.UiTest.views.uiTestCat import UiTestCatView

route = SimpleRouter()

route.register("uiTestCat", UiTestCatView, basename="uiTestCat")
route.register("uiTestCase", UiTestCaseView, basename="uiTestCase")
route.register("uiTestCaseLog", UiTestCaseLogView, basename="uiTestCaseLog")

urlpatterns = [
                  path('uiCaseFile/', UiCaseFile.as_view()),
                  path('runUiTestCase/', RunUiTestCaseView.as_view()),
              ] + route.urls
